<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>京东顶部导航条</title>
    <link rel="stylesheet" href="./css/reset.css">
    <style>
        .clearfix::after,
        .clearfix::before {
            content: "";
            display: table;
            clear: both;
        }

        body {
            font: 12px/1.5 Microsoft YaHei, Heiti SC, tahoma, arial, Hiragino Sans GB, "\5B8B\4F53", sans-serif;
        }

        .box {
            width: 100%;
            background-color: #e3e4e5;
            height: 30px;
            line-height: 30px;
            border-bottom: 1px #dddd solid;
        }

        .box1 {
            width: 1190px;
            margin: 0 auto;
            position: relative;
        }

        .box1 a,
        .box1 span,
        .box1 i {
            color: #999;
            text-decoration: none;
        }

        .box1 a:hover,
        .box3 a.light {
            color: #f10215
        }

        .box2 {
            float: left;
        }

        .box2 .fas {
            font-size: 14px;
            color: #f10215;
        }

        .box2 .city-list {
            display: none;
            width: 320px;
            height: 436px;
            background-color: white;
            border: 1px solid rgb(204, 204, 204);
            position: absolute;
            top: 31px;
            z-index: 999;
            box-shadow: 0 2px 2px rgba(0, 0, 0, .2);
            
        }
        .box2:hover .city-list {
            display: block;
        }
        .city{
            padding: 0 10px;
            border: 1px solid transparent;
            border-bottom: none;
            position: relative;
            z-index: 99999;
        }
        .box2:hover .city:hover{
            background-color: white;
            border: 1px solid rgb(204, 204, 204);
            border-bottom: none;
            padding-bottom: 1px;
            
        }

        

        .box3 {
            float: right;
        }

        .box3 .line {
            width: 1px;
            height: 10px;
            background-color: #999;
            margin: 10px 12px 0;
        }

        .box3 li {
            float: left;
        }
    </style>
</head>

<body>
    <div class="box">
        <div class="box1 clearfix">
            <div class="box2">
                <div class="city">
                    <i class="fas fa-map-marker-alt"></i>
                    <a href="#">北京</a>
                </div>
                <div class="city-list">

                </div>
                
            </div>
            <ul class="box3">
                <li>
                    <a href="#">你好，请登录</a>
                    <a class="light" href="#">免费注册</a>
                </li>
                <li class="line"></li>
                <li><a href="#">我的订单</a></li>

                <li class="line"></li>
                <li>
                    <a href="#">我的京东</a>
                    <i class="fas fa-angle-down"></i>
                </li>

                <li class="line"></li>
                <li><a href="#">京东会员</a></li>

                <li class="line"></li>
                <li>
                    <a class="light" href="#">企业采购</a>
                    <i class="fas fa-angle-down"></i>
                </li>

                <li class="line"></li>
                <li>
                    <span>客户服务</span>
                    <i class="fas fa-angle-down"></i>
                </li>

                <li class="line"></li>
                <li>
                    <span>网站导航</span>
                    <i class="fas fa-angle-down"></i>
                </li>


                <li class="line"></li>
                <li>
                    <span>手机京东</span>
                </li>

            </ul>
        </div>



    </div>
</body>

</html>